<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../JS/vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="btn1Click()">按钮1</button>
        <button @click="btn1Click">按钮2</button>
        <button @click="btn2Click('abc')">按钮3</button>
        <button @click="btn2Click()">按钮4</button>
        <button @click="btn2Click">按钮5</button> 
        <!-- //---------[object PointerEvent] -->
        <button @click="btn3Click('abc',$event)">按钮6</button> 
    </div>
    <script>
        const app = new Vue({
            el: '#app',
            data:{
                message: '你好'
            },
            methods:{
                btn1Click(){
                    console.log('xxx');
                },
                btn2Click(val){
                    console.log('---------'+val);
                },
                btn3Click(abc,event){
                    console.log(abc+' '+event);
                    
                }
            }
        })
    </script>
</body>
</html>